<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>主表</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<t:base type="bootstrap,layer,validform,webuploader,bootstrap-form"></t:base>
<script src="${webRoot}/plug-in/lhgDialog/lhgdialog.min.js"></script>
<script src="${webRoot}/plug-in/jquery-plugs/i18n/jquery.i18n.properties.js"></script>
<script src="${webRoot}/plug-in/tools/curdtools.js"></script>
</head>
<body>
<div class="container" style="width:100%;overflow-x:hidden">
<div class="panel panel-default">
<div class="panel-heading"></div>
<div class="panel-body">
<form class="form-horizontal" role="form" id="formobj" action="sdCarinfoController.do?doUpdate" method="POST">
	<input type="hidden" id="btn_sub" class="btn_sub"/>
	<input type="hidden" id="id" name="id" value="${sdCarinfoPage.id}"/>
	<fieldset>
		<legend>车辆主数据</legend>
		<div class="main-form">
			<div class="row">
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							车型：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carType" name="carType" value = "${sdCarinfoPage.carType}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							年份：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carYear" name="carYear" value = "${sdCarinfoPage.carYear}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							车辆编码：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carNo" name="carNo" value = "${sdCarinfoPage.carNo}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							车辆名称：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carName" name="carName" value = "${sdCarinfoPage.carName}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							车辆主图：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
				<t:webUploader name="carPic" outJs="true" auto="true" showImgDiv="filediv_carPic" type="image" buttonText='添加图片' displayTxt="false" pathValues="${sdCarinfoPage.carPic}"></t:webUploader>
				<div class="form" id="filediv_carPic"></div>
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							VIN：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carVin" name="carVin" value = "${sdCarinfoPage.carVin}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							发动机号：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carEnno" name="carEnno" value = "${sdCarinfoPage.carEnno}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							原始车牌：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carLsnumo" name="carLsnumo" value = "${sdCarinfoPage.carLsnumo}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							新车牌1：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carLsnumn1" name="carLsnumn1" value = "${sdCarinfoPage.carLsnumn1}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							新车牌2：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carLsnumn2" name="carLsnumn2" value = "${sdCarinfoPage.carLsnumn2}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							采购总成本：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carPoPrice" name="carPoPrice" value = "${sdCarinfoPage.carPoPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售指导价：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carSdPrice" name="carSdPrice" value = "${sdCarinfoPage.carSdPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							最低销售价：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carSdzdPrice" name="carSdzdPrice" value = "${sdCarinfoPage.carSdzdPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							实际成交价：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carSdsjPrice" name="carSdsjPrice" value = "${sdCarinfoPage.carSdsjPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售利润：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carXslrPrice" name="carXslrPrice" value = "${sdCarinfoPage.carXslrPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							应收账款：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carYszk" name="carYszk" value = "${sdCarinfoPage.carYszk}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							已收款项：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carSk" name="carSk" value = "${sdCarinfoPage.carSk}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							应付账款：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carYfzk" name="carYfzk" value = "${sdCarinfoPage.carYfzk}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							已付款项：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carFk" name="carFk" value = "${sdCarinfoPage.carFk}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							入库日期：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carRkData" name="carRkData" value = "${sdCarinfoPage.carRkData}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							出库日期：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carCkData" name="carCkData" value = "${sdCarinfoPage.carCkData}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							在库天数：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carZkData" name="carZkData" value = "${sdCarinfoPage.carZkData}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							采购员：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carPoUser" name="carPoUser" value = "${sdCarinfoPage.carPoUser}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售员：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
							<input id="carSdUser" name="carSdUser" value = "${sdCarinfoPage.carSdUser}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							状态：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
			            	<t:dictSelect id="carStatus" field="carStatus" defaultVal = "${sdCarinfoPage.carStatus}" type="select" hasLabel="false" title="状态" extendJson="{class:'form-control input-sm'}"   typeGroupCode="car_status" ></t:dictSelect>
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							库存地点：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
			            	<t:dictSelect id="carStore" field="carStore" defaultVal = "${sdCarinfoPage.carStore}" type="select" hasLabel="false" title="库存地点" extendJson="{class:'form-control input-sm'}"   typeGroupCode="car_store" ></t:dictSelect>
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售渠道：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
			            	<t:dictSelect id="carSdDis" field="carSdDis" defaultVal = "${sdCarinfoPage.carSdDis}" type="select" hasLabel="false" title="销售渠道" extendJson="{class:'form-control input-sm'}"   typeGroupCode="car_sddis" ></t:dictSelect>
		            	</div>
					</div>
				</div>
				<div class="bt-item col-md-6 col-sm-6">
					<div class="row">
						<div class="col-md-3 col-sm-3 col-xs-3 bt-label">
							销售合同类型：
						</div>
						<div class="col-md-8 col-sm-8 col-xs-8 bt-content">
			            	<t:dictSelect id="concType" field="concType" defaultVal = "${sdCarinfoPage.concType}" type="select" hasLabel="false" title="销售合同类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="conc_type" ></t:dictSelect>
		            	</div>
					</div>
				</div>
			</div>
		</div>
	</fieldset>

	<ul class="nav nav-tabs" style="margin-bottom:0" id="subTabs">
		<li class="active"><a href="#sdVendor" data-toggle="tab">供应商</a></li>  
		<li><a href="#sdPoPrice" data-toggle="tab">采购价格明细</a></li>  
		<li><a href="#sdCarPic" data-toggle="tab">车辆照片</a></li>  
		<li><a href="#sdFkLog" data-toggle="tab">付款信息</a></li>  
		<li><a href="#sdCustomer" data-toggle="tab">客户</a></li>  
		<li><a href="#sdActivity" data-toggle="tab">售前活动</a></li>  
		<li><a href="#sdPrice" data-toggle="tab">销售价格明细</a></li>  
		<li><a href="#sdSkLog" data-toggle="tab">收款信息</a></li>  
		<li><a href="#sdCsPlan" data-toggle="tab">售后计划</a></li>  
		<li><a href="#sdCsActity" data-toggle="tab">售后活动</a></li>  
	</ul>
	<div class="tab-content" style="background-color:#fff;padding-top:10px;">
		<div class="tab-pane fade in active" id="sdVendor">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdVendor_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdVendor_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdVendor_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>供应商编码</th>
					<th>供应商名称</th>
					<th>备注</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdVendorList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdVendorList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdVendorList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
							<input id="sdVendorList[${stuts.index }].vendorCode" name="sdVendorList[${stuts.index }].vendorCode" value = "${poVal.vendorCode}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdVendorList[${stuts.index }].vendorName" name="sdVendorList[${stuts.index }].vendorName" value = "${poVal.vendorName}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdVendorList[${stuts.index }].vendorRemark" name="sdVendorList[${stuts.index }].vendorRemark" value = "${poVal.vendorRemark}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdVendorList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
							<input id="sdVendorList[0].vendorCode" name="sdVendorList[0].vendorCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdVendorList[0].vendorName" name="sdVendorList[0].vendorName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdVendorList[0].vendorRemark" name="sdVendorList[0].vendorRemark"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdPoPrice">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdPoPrice_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdPoPrice_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdPoPrice_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>类型</th>
					<th>价格</th>
					<th>是否参与合计</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdPoPriceList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdPoPriceList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdPoPriceList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdPoPriceList[${stuts.index }].prType" field="sdPoPriceList[${stuts.index }].prType" defaultVal = "${poVal.prType}" type="select" hasLabel="false" title="类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pop_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdPoPriceList[${stuts.index }].prValue" name="sdPoPriceList[${stuts.index }].prValue" value = "${poVal.prValue}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPoPriceList[${stuts.index }].prCount" field="sdPoPriceList[${stuts.index }].prCount" defaultVal = "${poVal.prCount}" extendJson="{class:'i-checks'}" type="radio" hasLabel="false"  title="是否参与合计"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdPoPriceList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdPoPriceList[0].prType" field="sdPoPriceList[0].prType"  type="select" hasLabel="false" title="类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pop_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdPoPriceList[0].prValue" name="sdPoPriceList[0].prValue"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPoPriceList[0].prCount" field="sdPoPriceList[0].prCount"  extendJson="{class:'i-checks'}" type="radio" hasLabel="false"  title="是否参与合计"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdCarPic">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdCarPic_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdCarPic_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdCarPic_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>图片URL</th>
					<th>图片大小</th>
					<th>图片名称</th>
					<th>图片路径</th>
					<th>图片类型</th>
					<th>备注</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdCarPicList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdCarPicList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdCarPicList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
				            		<input onclick="onetomanyUpload('sdCarPicList[${stuts.index }].picUrl')" class="btn btn-default" type="button" value="上传附件" />	
									<input id="sdCarPicList[${stuts.index }].picUrl" type="hidden" name="sdCarPicList[${stuts.index }].picUrl" value = "${poVal.picUrl}"/>
										<a target="_blank" class=".btn-default"							            <c:if test="${not empty poVal.picUrl}">							              href="img/server/${poVal.picUrl}?down=true">下载							            </c:if>							            <c:if test="${empty poVal.picUrl}">></c:if>							            </a>					</td>
					<td>
							<input id="sdCarPicList[${stuts.index }].picSize" name="sdCarPicList[${stuts.index }].picSize" value = "${poVal.picSize}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[${stuts.index }].picName" name="sdCarPicList[${stuts.index }].picName" value = "${poVal.picName}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[${stuts.index }].picPath" name="sdCarPicList[${stuts.index }].picPath" value = "${poVal.picPath}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[${stuts.index }].picType" name="sdCarPicList[${stuts.index }].picType" value = "${poVal.picType}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[${stuts.index }].picRemark" name="sdCarPicList[${stuts.index }].picRemark" value = "${poVal.picRemark}" type="text" class="form-control input-sm" maxlength="132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdCarPicList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
				            		<input onclick="onetomanyUpload('sdCarPicList[0].picUrl')" class="btn btn-default" type="button" value="上传附件" />	
									<input id="sdCarPicList[0].picUrl" type="hidden" name="sdCarPicList[0].picUrl" />
										<a target="_blank" class="btn btn-link"></a>
					</td>
					<td>
							<input id="sdCarPicList[0].picSize" name="sdCarPicList[0].picSize"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[0].picName" name="sdCarPicList[0].picName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[0].picPath" name="sdCarPicList[0].picPath"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[0].picType" name="sdCarPicList[0].picType"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCarPicList[0].picRemark" name="sdCarPicList[0].picRemark"  type="text" class="form-control input-sm" maxlength="132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdFkLog">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdFkLog_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdFkLog_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdFkLog_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>付款方式</th>
					<th>付款金额</th>
					<th>付款日期</th>
					<th>付款备注</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdFkLogList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdFkLogList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdFkLogList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdFkLogList[${stuts.index }].fkMethod" field="sdFkLogList[${stuts.index }].fkMethod" defaultVal = "${poVal.fkMethod}" type="select" hasLabel="false" title="付款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
					</td>
					<td>
							<input id="sdFkLogList[${stuts.index }].fkAmount" name="sdFkLogList[${stuts.index }].fkAmount" value = "${poVal.fkAmount}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdFkLogList[${stuts.index }].fkData" name="sdFkLogList[${stuts.index }].fkData" value = "${poVal.fkData}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdFkLogList[${stuts.index }].fkRemark" name="sdFkLogList[${stuts.index }].fkRemark" value = "${poVal.fkRemark}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdFkLogList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdFkLogList[0].fkMethod" field="sdFkLogList[0].fkMethod"  type="select" hasLabel="false" title="付款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
					</td>
					<td>
							<input id="sdFkLogList[0].fkAmount" name="sdFkLogList[0].fkAmount"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdFkLogList[0].fkData" name="sdFkLogList[0].fkData"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdFkLogList[0].fkRemark" name="sdFkLogList[0].fkRemark"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdCustomer">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdCustomer_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdCustomer_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdCustomer_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>客户编码</th>
					<th>客户名称</th>
					<th>客户电话</th>
					<th>备注</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdCustomerList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdCustomerList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdCustomerList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
							<input id="sdCustomerList[${stuts.index }].cusCode" name="sdCustomerList[${stuts.index }].cusCode" value = "${poVal.cusCode}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[${stuts.index }].cusName" name="sdCustomerList[${stuts.index }].cusName" value = "${poVal.cusName}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[${stuts.index }].cusTel" name="sdCustomerList[${stuts.index }].cusTel" value = "${poVal.cusTel}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[${stuts.index }].cusRemark" name="sdCustomerList[${stuts.index }].cusRemark" value = "${poVal.cusRemark}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdCustomerList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
							<input id="sdCustomerList[0].cusCode" name="sdCustomerList[0].cusCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[0].cusName" name="sdCustomerList[0].cusName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[0].cusTel" name="sdCustomerList[0].cusTel"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCustomerList[0].cusRemark" name="sdCustomerList[0].cusRemark"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdActivity">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdActivity_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdActivity_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdActivity_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>活动类型</th>
					<th>活动内容</th>
					<th>客户编码</th>
					<th>客户名称</th>
					<th>客户电话</th>
					<th>客户回复</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdActivityList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdActivityList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdActivityList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdActivityList[${stuts.index }].acType" field="sdActivityList[${stuts.index }].acType" defaultVal = "${poVal.acType}" type="select" hasLabel="false" title="活动类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="ac_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdActivityList[${stuts.index }].acContent" name="sdActivityList[${stuts.index }].acContent" value = "${poVal.acContent}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[${stuts.index }].cusCode" name="sdActivityList[${stuts.index }].cusCode" value = "${poVal.cusCode}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[${stuts.index }].cusName" name="sdActivityList[${stuts.index }].cusName" value = "${poVal.cusName}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[${stuts.index }].cusMobile" name="sdActivityList[${stuts.index }].cusMobile" value = "${poVal.cusMobile}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[${stuts.index }].acReplay" name="sdActivityList[${stuts.index }].acReplay" value = "${poVal.acReplay}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdActivityList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdActivityList[0].acType" field="sdActivityList[0].acType"  type="select" hasLabel="false" title="活动类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="ac_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdActivityList[0].acContent" name="sdActivityList[0].acContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[0].cusCode" name="sdActivityList[0].cusCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[0].cusName" name="sdActivityList[0].cusName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[0].cusMobile" name="sdActivityList[0].cusMobile"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdActivityList[0].acReplay" name="sdActivityList[0].acReplay"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdPrice">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdPrice_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdPrice_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdPrice_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>价格类型</th>
					<th>价格</th>
					<th>是否参与计算</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdPriceList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdPriceList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdPriceList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdPriceList[${stuts.index }].prType" field="sdPriceList[${stuts.index }].prType" defaultVal = "${poVal.prType}" type="select" hasLabel="false" title="价格类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="sdp_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdPriceList[${stuts.index }].prPrice" name="sdPriceList[${stuts.index }].prPrice" value = "${poVal.prPrice}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPriceList[${stuts.index }].prCiunt" field="sdPriceList[${stuts.index }].prCiunt" defaultVal = "${poVal.prCiunt}" extendJson="{class:'i-checks'}" type="radio" hasLabel="false"  title="是否参与计算"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdPriceList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdPriceList[0].prType" field="sdPriceList[0].prType"  type="select" hasLabel="false" title="价格类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="sdp_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdPriceList[0].prPrice" name="sdPriceList[0].prPrice"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPriceList[0].prCiunt" field="sdPriceList[0].prCiunt"  extendJson="{class:'i-checks'}" type="radio" hasLabel="false"  title="是否参与计算"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdSkLog">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdSkLog_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdSkLog_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdSkLog_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>收款方式</th>
					<th>收款金额</th>
					<th>收款日期</th>
					<th>收款备注</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdSkLogList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdSkLogList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdSkLogList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdSkLogList[${stuts.index }].skMethod" field="sdSkLogList[${stuts.index }].skMethod" defaultVal = "${poVal.skMethod}" type="select" hasLabel="false" title="收款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
					</td>
					<td>
							<input id="sdSkLogList[${stuts.index }].skAmount" name="sdSkLogList[${stuts.index }].skAmount" value = "${poVal.skAmount}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdSkLogList[${stuts.index }].skData" name="sdSkLogList[${stuts.index }].skData" value = "${poVal.skData}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdSkLogList[${stuts.index }].skRemark" name="sdSkLogList[${stuts.index }].skRemark" value = "${poVal.skRemark}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdSkLogList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdSkLogList[0].skMethod" field="sdSkLogList[0].skMethod"  type="select" hasLabel="false" title="收款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
					</td>
					<td>
							<input id="sdSkLogList[0].skAmount" name="sdSkLogList[0].skAmount"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdSkLogList[0].skData" name="sdSkLogList[0].skData"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdSkLogList[0].skRemark" name="sdSkLogList[0].skRemark"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdCsPlan">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdCsPlan_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdCsPlan_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdCsPlan_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>售后类型</th>
					<th>售后编号</th>
					<th>计划日期</th>
					<th>售后内容</th>
					<th>附件</th>
					<th>执行人</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdCsPlanList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdCsPlanList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdCsPlanList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdCsPlanList[${stuts.index }].csType" field="sdCsPlanList[${stuts.index }].csType" defaultVal = "${poVal.csType}" type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdCsPlanList[${stuts.index }].csNo" name="sdCsPlanList[${stuts.index }].csNo" value = "${poVal.csNo}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[${stuts.index }].csDate" name="sdCsPlanList[${stuts.index }].csDate" value = "${poVal.csDate}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[${stuts.index }].csContent" name="sdCsPlanList[${stuts.index }].csContent" value = "${poVal.csContent}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[${stuts.index }].csAtta" name="sdCsPlanList[${stuts.index }].csAtta" value = "${poVal.csAtta}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[${stuts.index }].csUser" name="sdCsPlanList[${stuts.index }].csUser" value = "${poVal.csUser}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdCsPlanList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdCsPlanList[0].csType" field="sdCsPlanList[0].csType"  type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdCsPlanList[0].csNo" name="sdCsPlanList[0].csNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[0].csDate" name="sdCsPlanList[0].csDate"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[0].csContent" name="sdCsPlanList[0].csContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[0].csAtta" name="sdCsPlanList[0].csAtta"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsPlanList[0].csUser" name="sdCsPlanList[0].csUser"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
		<div class="tab-pane fade" id="sdCsActity">  
			<div class="form-tb-toolbar">
				<button onclick="addOneRow('sdCsActity_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加</button>
				<button onclick="deleteSelectRows('sdCsActity_table')" type="button" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-minus"></span>&nbsp;删除</button>
			</div>
	   		<div style="overflow-x:auto">
	   		<table class="table subinfo-table" id="sdCsActity_table">
		   		<thead>
		   		<tr>
		   			<th align="center" style="width:25px;"></th>
					<th>售后类型</th>
					<th>售后服务编号</th>
					<th>编号</th>
					<th>内容</th>
					<th>附件</th>
					<th>执行人</th>
				</thead>
				<tbody>
				<c:if test="${fn:length(sdCarinfoPage.sdCsActityList)  > 0 }">
				<c:forEach items="${sdCarinfoPage.sdCsActityList}" var="poVal" varStatus="stuts">
				<tr>
			  		<td class="form-ck">
			  			<input style="" type="checkbox" name="ck"/>
			  			<input name = "sdCsActityList[${stuts.index }].id" value= "${poVal.id}" type="hidden"/>
			  		</td>
					<td>
			            	<t:dictSelect id="sdCsActityList[${stuts.index }].csaType" field="sdCsActityList[${stuts.index }].csaType" defaultVal = "${poVal.csaType}" type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdCsActityList[${stuts.index }].csaNo" name="sdCsActityList[${stuts.index }].csaNo" value = "${poVal.csaNo}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[${stuts.index }].orderNo" name="sdCsActityList[${stuts.index }].orderNo" value = "${poVal.orderNo}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[${stuts.index }].csaContent" name="sdCsActityList[${stuts.index }].csaContent" value = "${poVal.csaContent}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[${stuts.index }].csaAtta" name="sdCsActityList[${stuts.index }].csaAtta" value = "${poVal.csaAtta}" type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[${stuts.index }].csaUser" name="sdCsActityList[${stuts.index }].csaUser" value = "${poVal.csaUser}" type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:forEach>
				</c:if>
				<c:if test="${fn:length(sdCarinfoPage.sdCsActityList) <= 0 }">
				<tr>
			  		<td class="form-ck"><input type="checkbox" name="ck"/></td>
					<td>
			            	<t:dictSelect id="sdCsActityList[0].csaType" field="sdCsActityList[0].csaType"  type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
					</td>
					<td>
							<input id="sdCsActityList[0].csaNo" name="sdCsActityList[0].csaNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[0].orderNo" name="sdCsActityList[0].orderNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[0].csaContent" name="sdCsActityList[0].csaContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[0].csaAtta" name="sdCsActityList[0].csaAtta"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
					</td>
					<td>
							<input id="sdCsActityList[0].csaUser" name="sdCsActityList[0].csaUser"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
					</td>
			  	</tr>
				</c:if>
			 	</tbody>
			</table>
			</div>
		</div>
	</div>
</form>
</div>
</div>
</div>
<table style="display:none">
	<tbody id="sdVendor_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
							<input id="sdVendorList[#index#].vendorCode" name="sdVendorList[#index#].vendorCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdVendorList[#index#].vendorName" name="sdVendorList[#index#].vendorName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdVendorList[#index#].vendorRemark" name="sdVendorList[#index#].vendorRemark"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdPoPrice_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdPoPriceList[#index#].prType" field="sdPoPriceList[#index#].prType"  type="select" hasLabel="false" title="类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pop_type" ></t:dictSelect>
			</td>
			<td>
							<input id="sdPoPriceList[#index#].prValue" name="sdPoPriceList[#index#].prValue"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPoPriceList[#index#].prCount" field="sdPoPriceList[#index#].prCount"  extendJson="{class:'i-checks-tpl'}" type="radio" hasLabel="false"  title="是否参与合计"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
			</td>
		</tr>
	</tbody>
	<tbody id="sdCarPic_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
				            		<input onclick="onetomanyUpload('sdCarPicList[#index#].picUrl')" class="btn btn-default" type="button" value="上传附件" />	
									<input id="sdCarPicList[#index#].picUrl" type="hidden" name="sdCarPicList[#index#].picUrl" />
										<a target="_blank" class="btn btn-link"></a>
			</td>
			<td>
							<input id="sdCarPicList[#index#].picSize" name="sdCarPicList[#index#].picSize"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCarPicList[#index#].picName" name="sdCarPicList[#index#].picName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCarPicList[#index#].picPath" name="sdCarPicList[#index#].picPath"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCarPicList[#index#].picType" name="sdCarPicList[#index#].picType"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCarPicList[#index#].picRemark" name="sdCarPicList[#index#].picRemark"  type="text" class="form-control input-sm" maxlength="132"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdFkLog_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdFkLogList[#index#].fkMethod" field="sdFkLogList[#index#].fkMethod"  type="select" hasLabel="false" title="付款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
			</td>
			<td>
							<input id="sdFkLogList[#index#].fkAmount" name="sdFkLogList[#index#].fkAmount"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdFkLogList[#index#].fkData" name="sdFkLogList[#index#].fkData"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdFkLogList[#index#].fkRemark" name="sdFkLogList[#index#].fkRemark"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdCustomer_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
							<input id="sdCustomerList[#index#].cusCode" name="sdCustomerList[#index#].cusCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCustomerList[#index#].cusName" name="sdCustomerList[#index#].cusName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCustomerList[#index#].cusTel" name="sdCustomerList[#index#].cusTel"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCustomerList[#index#].cusRemark" name="sdCustomerList[#index#].cusRemark"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdActivity_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdActivityList[#index#].acType" field="sdActivityList[#index#].acType"  type="select" hasLabel="false" title="活动类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="ac_type" ></t:dictSelect>
			</td>
			<td>
							<input id="sdActivityList[#index#].acContent" name="sdActivityList[#index#].acContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdActivityList[#index#].cusCode" name="sdActivityList[#index#].cusCode"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdActivityList[#index#].cusName" name="sdActivityList[#index#].cusName"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdActivityList[#index#].cusMobile" name="sdActivityList[#index#].cusMobile"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdActivityList[#index#].acReplay" name="sdActivityList[#index#].acReplay"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdPrice_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdPriceList[#index#].prType" field="sdPriceList[#index#].prType"  type="select" hasLabel="false" title="价格类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="sdp_type" ></t:dictSelect>
			</td>
			<td>
							<input id="sdPriceList[#index#].prPrice" name="sdPriceList[#index#].prPrice"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
			            	<div style="padding-top:5px">
			            	<t:dictSelect id="sdPriceList[#index#].prCiunt" field="sdPriceList[#index#].prCiunt"  extendJson="{class:'i-checks-tpl'}" type="radio" hasLabel="false"  title="是否参与计算"  typeGroupCode="sf_yn" ></t:dictSelect>
			            	</div>
			</td>
		</tr>
	</tbody>
	<tbody id="sdSkLog_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdSkLogList[#index#].skMethod" field="sdSkLogList[#index#].skMethod"  type="select" hasLabel="false" title="收款方式" extendJson="{class:'form-control input-sm'}"   typeGroupCode="pay_meth" ></t:dictSelect>
			</td>
			<td>
							<input id="sdSkLogList[#index#].skAmount" name="sdSkLogList[#index#].skAmount"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdSkLogList[#index#].skData" name="sdSkLogList[#index#].skData"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdSkLogList[#index#].skRemark" name="sdSkLogList[#index#].skRemark"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdCsPlan_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdCsPlanList[#index#].csType" field="sdCsPlanList[#index#].csType"  type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
			</td>
			<td>
							<input id="sdCsPlanList[#index#].csNo" name="sdCsPlanList[#index#].csNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsPlanList[#index#].csDate" name="sdCsPlanList[#index#].csDate"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsPlanList[#index#].csContent" name="sdCsPlanList[#index#].csContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsPlanList[#index#].csAtta" name="sdCsPlanList[#index#].csAtta"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsPlanList[#index#].csUser" name="sdCsPlanList[#index#].csUser"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
	<tbody id="sdCsActity_table_template">
		<tr>
			<td class="form-ck"><input type="checkbox" name="ck"/></td>
			<td>
			            	<t:dictSelect id="sdCsActityList[#index#].csaType" field="sdCsActityList[#index#].csaType"  type="select" hasLabel="false" title="售后类型" extendJson="{class:'form-control input-sm'}"   typeGroupCode="cs_type" ></t:dictSelect>
			</td>
			<td>
							<input id="sdCsActityList[#index#].csaNo" name="sdCsActityList[#index#].csaNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsActityList[#index#].orderNo" name="sdCsActityList[#index#].orderNo"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsActityList[#index#].csaContent" name="sdCsActityList[#index#].csaContent"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsActityList[#index#].csaAtta" name="sdCsActityList[#index#].csaAtta"  type="text" class="form-control input-sm" maxlength="1132"  ignore="ignore"  />
			</td>
			<td>
							<input id="sdCsActityList[#index#].csaUser" name="sdCsActityList[#index#].csaUser"  type="text" class="form-control input-sm" maxlength="32"  ignore="ignore"  />
			</td>
		</tr>
	</tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
	formControlInit();
	//表单提交
	$("#formobj").Validform({
		tiptype:function(msg,o,cssctl){
			if(o.type==3){
				var oopanel = $(o.obj).closest(".tab-pane");
				var a = 0;
				if(oopanel.length>0){
					var panelID = oopanel.attr("id");
					if(!!panelID){
						var waitActive = $('#subTabs a[href="#'+panelID+'"]');
						if(!waitActive.hasClass("active")){
							waitActive.tab('show')
							a = 1;
						}
					}
				}
				if(a==1){
					setTimeout(function(){validationMessage(o.obj,msg);},366);
				}else{
					validationMessage(o.obj,msg);
				}
			}else{
				removeMessage(o.obj);
			}
		},
		btnSubmit : "#btn_sub",
		btnReset : "#btn_reset",
		ajaxPost : true,
		beforeSubmit : function(curform) {
		},
		usePlugin : {
			passwordstrength : {
				minLen : 6,
				maxLen : 18,
				trigger : function(obj, error) {
					if (error) {
						obj.parent().next().find(".Validform_checktip").show();
						obj.find(".passwordStrength").hide();
					} else {
						$(".passwordStrength").show();
						obj.parent().next().find(".Validform_checktip").hide();
					}
				}
			}
		},
		callback : function(data) {
			var win = frameElement.api.opener;
			if (data.success == true) {
				frameElement.api.close();
			    win.reloadTable();
			    win.tip(data.msg);
			} else {
			    if (data.responseText == '' || data.responseText == undefined) {
			        $.messager.alert('错误', data.msg);
			        $.Hidemsg();
			    } else {
			        try {
			            var emsg = data.responseText.substring(data.responseText.indexOf('错误描述'), data.responseText.indexOf('错误信息'));
			            $.messager.alert('错误', emsg);
			            $.Hidemsg();
			        } catch (ex) {
			            $.messager.alert('错误', data.responseText + "");
			            $.Hidemsg();
			        }
			    }
			    return false;
			}
		}
	});
	  //查看模式情况下,删除和上传附件功能禁止使用
	if(location.href.indexOf("load=detail")!=-1){
		$(".form-tb-toolbar").hide();
		$("#formobj").find(":input").attr("readonly","readonly");
	}
});
function formControlInit(){
	//单选框/多选框初始化
	$('.i-checks').iCheck({
		labelHover : false,
		cursor : true,
		checkboxClass : 'icheckbox_square-green',
		radioClass : 'iradio_square-green',
		increaseArea : '20%'
	});
}
//初始化下标
function resetTrNum(tableId) {
	$tbody = $("#"+tableId+"");
	$tbody.find('tbody > tr').each(function(i){
		$(':input, select,button,a', this).each(function(){
			var $this = $(this),validtype_str = $this.attr('validType'), name = $this.attr('name'),id=$this.attr('id'),onclick_str=$this.attr('onclick'), val = $this.val();
			if(name!=null){
				if (name.indexOf("#index#") >= 0){
					$this.attr("name",name.replace('#index#',i));
				}else{
					var s = name.indexOf("[");
					var e = name.indexOf("]");
					var new_name = name.substring(s+1,e);
					$this.attr("name",name.replace("["+new_name+"]","["+i+"]"));
				}
			}
			if(id!=null){
				if (id.indexOf("#index#") >= 0){
					$this.attr("id",id.replace('#index#',i));
				}else{
					var s = id.indexOf("[");
					var e = id.indexOf("]");
					var new_id = id.substring(s+1,e);
					$this.attr("id",id.replace(new_id,i));
				}
			}
			if(onclick_str!=null){
				if (onclick_str.indexOf("#index#") >= 0){
					$this.attr("onclick",onclick_str.replace(/#index#/g,i));
				}else{
					var s = onclick_str.indexOf("[");
					var e = onclick_str.indexOf("]");
					var new_onclick_str = onclick_str.substring(s+1,e);
					if(new_onclick_str!=''){
						$this.attr("onclick",onclick_str.replace(new_onclick_str,i));
					}
				}
			}
			if(validtype_str!=null){
				if(validtype_str.indexOf("#index#") >= 0){
					$this.attr("validType",validtype_str.replace('#index#',i));
				}
			}
			var class_str = $this.attr("class");
			if(!!class_str && class_str.indexOf("i-checks-tpl")>=0){
				$this.attr("class",class_str.replace(/i-checks-tpl/,"i-checks"));
			}
		});
		//$(this).find('div[name=\'xh\']').html(i+1);
	});
}
//新增一行
function addOneRow(tableId){
 	var tr =  $("#"+tableId+"_template tr").clone();
 	 $("#"+tableId).append(tr);
 	 resetTrNum(tableId);
 	 formControlInit();
}
//删除所选行
function deleteSelectRows(tableId){
	$("#"+tableId).find("input[name$='ck']:checked").parent().parent().remove();   
    resetTrNum(tableId); 
}
//通用弹出式文件上传
function onetomanyUpload(inputName){
    $.dialog({
           content: "url:${webRoot}/systemController.do?commonWebUpload",
           lock : true,
           title:"文件上传",
           zIndex:getzIndex(),
           width:700,
           height: 200,
           parent:windowapi,
           cache:false,
	       ok: function(){
	               var iframe = this.iframe.contentWindow;
	               var url = iframe.uploadCallback();
	               $("input[name='"+inputName+"']").val(url);
	               $("input[name='"+inputName+"']").next("a").attr("href","img/server/"+url+"?down=true").html("下载");
	               return true;
	       },
	       cancelVal: '关闭',
	       cancel: function(){
       	   } 
      });
  }
</script>
</body>
</html>